#ifndef __JOB__h
#define __JOB__h

#include <iostream>

typedef enum {
    WAITING    = 0,
    LOADING    = 1,
    PROCESSING = 2,
    RECOVERING = 3,
    DONE       = 4,
    CANCELLED  = 5,
    RESERVED   = 6
} State;


typedef struct {
    char name[15];
    double submit_time;
    double run_time;
    double input_size;
    double output_size;
    double requested_time;
    double start_time;
    unsigned long int id;
    int priority;
    int nb_procs;
    int * mapping;
    State state;
   
} Job;

 
std::ostream& operator<< (std::ostream& os, Job& val );


#endif
